/**
 * @Author:  renyc
 * @Date: 2022年12月23日15:21:35
 */

import * as Cesium from 'cesium/Cesium';
import GPlatesImageryType from './GPlatesImageryType';

// const GPlatesImageryConfig = {
//     VERTICAL_GRAVITY_GRADIENT_GRID : {
//         name : 
//     }
// }

// const TILE_URL = {
//     //http://8.140.115.143:8080/tms/raster_world
//     img: '/tms/raster_world',
//     // elec:
//     //   '//webrd{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}',
//     // cva:
//     //   '//webst{s}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&scale=1&style=8&x={x}&y={y}&z={z}'
//   }

class GPlatesImageryProvider extends Cesium.UrlTemplateImageryProvider {
    constructor(options = {}) {
        let type = options.type;

        
        //options['url'] = options.url || TILE_URL.img;
        //options['url'] = options.url || TILE_URL.img;
        //options['url'] = '/get_tile/?name=VGG&time=200&z={z}&x={x}&y={y}&fmt=png',
        options['url'] = '/get_tile/?name=geology&z={z}&x={x}&y={y}&fmt=png',
        options['tilingScheme'] = new Cesium.GeographicTilingScheme();
        super(options)
    }
}

export default GPlatesImageryProvider;